<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
   <title>Title</title>

</head>
<body>
<div>
    <a th:href="@{/login}" shiro:guest="true">登陆</a>
    <a th:href="@{/logout}" shiro:user>注销</a>
</div>
<h1>首页</h1>
<p th:text="${msg}"></p>
<hr>
<a th:href="@{/user/add}" shiro:hasPermission="user:add">add</a>
<a th:href="@{user/update}" shiro:hasPermission="user:update">update</a>





</body>
</html>
